package com.parfinex.java.phase1.module2.code.communicate;
/**
* 编程实现通话套餐类的定义
* */
public class PhonePackage {
    //1.自定义通话套餐私有成员变量
    private String totalCallDuration;//定义通话时长
    private int smsAmonut;//定义短信条数

    //3.构造方法调用get和set方法
    public void PhonePackage(){

    }

    public PhonePackage(String totalCallDuration, int smsAmonut) {
        this.totalCallDuration = totalCallDuration;
        this.smsAmonut = smsAmonut;
    }
    //2.提供公有的get和set方法

    public String getTotalCallDuration() {
        return totalCallDuration;
    }

    public void setTotalCallDuration(String totalCallDuration) {
        this.totalCallDuration = totalCallDuration;
    }

    public int getSmsAmonut() {
        return smsAmonut;
    }

    public void setSmsAmonut(int smsAmonut) {
        this.smsAmonut = smsAmonut;
    }

    //4.显示所有套餐信息
    public void show(){
        System.out.println("通话时长："+totalCallDuration);
        System.out.println("短信条数"+smsAmonut);
    }
}
